<%@include file="/WEB-INF/common/taglibs.jsp"%>

<script type="text/javascript" src="${ctx}/ckfinder/ckfinder.js"></script>
<script type="text/javascript" src="${ctx}/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="${supr}/js/supr-theme/jquery-ui-timepicker-addon.js"></script>
<script>
$(document).ready(function(){
	$("form.form-horizontal.seperator[method='post']").validate();
	$(document).ready(function(){
	CKEDITOR.on( 'instanceReady', function( evt ) {
		var editor = evt.editor;
		editor.setMode( 'wysiwyg' );
		CKFinder.setupCKEditor( editor, { basePath : '/ckfinder/', skin : 'v1' } ) ;
	});
});
	
	
});
	
	
 </script>
<div class="row-fluid">

	<div class="span12">

		<div class="page-header">
			<h4>Post </h4>
		</div>

<form class="form-horizontal seperator" method="post">
<!--title --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="title">Title :</label><input class="span4" id="title" name="title"   type="text" value="${entity.title}" /></div></div></div>
<!--coverURL --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="coverURL">CoverURL :</label><input class="span4 ckfile" id="coverURL" name="coverURL"   type="text" value="${entity.coverURL}" /></div></div></div>
<!--createDate --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="createDate">Create Date :</label><input class="span4 datetimepicker" id="createDate" name="createDate" type="text" value="<fmt:formatDate pattern="yyyy-MM-dd HH:mm" value="${entity.createDate}" />" /></div></div></div>
<!--effectDay --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="effectDay">Effect Day :</label><input class="span4 datetimepicker" id="effectDay" name="effectDay" type="text" value="<fmt:formatDate pattern="yyyy-MM-dd HH:mm" value="${entity.effectDay}" />" /></div></div></div>
<!--keyUrl --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="keyUrl">Key Url :</label><input class="span4" id="keyUrl" name="keyUrl"   type="text" value="${entity.keyUrl}" /></div></div></div>
<!--active --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="active">Active :</label><div class="left marginT5 marginR10"><div class="radio" id="uniform-active1"><span class="<c:if test="${entity.active }">checked</c:if>"><input type="radio" name="active" id="active1" value="true" <c:if test="${entity.active}">checked="checked"</c:if> style="opacity: 0;"></span></div>True</div><div class="left marginT5 marginR10"><div class="radio" id="uniform-active2"><span class="<c:if test="${!entity.active}">checked</c:if>"><input type="radio" <c:if test="${!entity.active}">checked="checked"</c:if>name="active" id="active2" value="false" style="opacity: 0;"></span></div>False</div></div></div></div>
<!--picURL --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="picURL">PicURL :</label><input class="span4 ckfile" id="picURL" name="picURL"   type="text" value="${entity.picURL}" /></div></div></div>
<!--summary --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="summary">Summary :</label><textarea name="summary" class="span4 ckeditor" id="summary" rows="3" cols="5"><c:out value="${entity.summary}"></c:out></textarea></div></div></div>




 <div class="form-row row-fluid">
				<div class="span12">
					<div class="row-fluid">
						<div class="form-actions">
							<div class="span3"></div>
							<div class="span4 controls">
								<button type="submit" class="btn btn-info marginR10">Save
									changes</button>
								<button class="btn btn-danger">Cancel</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>

	</div>
	<!-- End .span12 -->

</div>
<!-- End .row-fluid --> 

